<?php

class LoginForm extends sfForm
{
	public function configure()
    {
        $this->setWidgets( array (
			'username'	=> new sfWidgetFormInput( array () /*, array ('class'=>'wikiContentInput')*/),
        	'password'	=> new sfWidgetFormInputPassword( array () /*, array ('class'=>'wikiCommentInput')*/)
        ));
		
		$this->setValidators(array (
			'username'	=> new sfValidatorString(array('min_length' => 4, 'max_length' => 50, 'required' => true)),
			'password'	=> new sfValidatorString(array('max_length' => 4, 'max_length' => 50, 'required' => true))
		));

        $this->widgetSchema->setNameFormat('login[%s]');
    }
}

?>